Skip to content

Feat/follow management#321

Merged
Kaylahray merged 2 commits into
geevapp:mainfrom
Ezeh20:feat/follow-management
Jun 1, 2026
Merged

Feat/follow management#321
Kaylahray merged 2 commits into
geevapp:mainfrom
Ezeh20:feat/follow-management

Conversation

@Ezeh20
Copy link
Copy Markdown

@Ezeh20 Ezeh20 commented Jun 1, 2026

Pull Request Template

Description

Adds a complete frontend follow-management surface for profile pages, including follow and unfollow actions, follower and following counts, and modal list views.

This change connects the existing follower and following backend routes to the profile UI so users can manage social relationships directly from the frontend. It also keeps the UI in sync with backend mutation responses by refreshing follow state and counts after each action, and adds loading and error states for both profile mutations and follower list dialogs.

It also adds documentation for the feature in app/docs/follow-management.md.

Fixes #302


Checklist

  • I have tested my changes locally
  • I have updated documentation as needed
  • I have run npx prisma generate after schema changes
  • I have run npx prisma migrate dev or npx prisma migrate deploy as appropriate

Notes:

  • No Prisma schema changes were made in this PR, so no migration was required.
  • Local verification run:
    • corepack pnpm exec eslint app/profile/[userId]/page.tsx components/follow-list-dialog.tsx app/api/users/[id]/follow/route.ts
  • Prisma client generation run:
    • npx prisma generate
  • Documentation added:
    • app/docs/follow-management.md

Post-Merge Steps for Maintainers

If this PR includes changes to the Prisma schema:

  1. Run the following command to apply the migration to your database:

    npx prisma migrate deploy

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Ezeh20 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Kaylahray Kaylahray merged commit fa96d3c into geevapp:main Jun 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Frontend] Add followers and following management

3 participants